<html>
<head>
<title>ThinMVC Documentation: Structure and Naming</title>
<style type="text/css">
body li {
	padding-bottom:20px;
}
body li li {
	padding-top:8px;
	padding-bottom:3px;
}
</style>
</head>
<body>
<h3>Notes on Structure and Naming</h3>
<ul>
<li>Controller <b>file</b> names should include the name of the folder they are in. Controller <b>class</b> names should include the name of the folder and the ones above it. Like so:
<ul>
<li> /portalone/user/userController.php = a class named <i>portalone_userController</i></li>
<li> /portalone/intranet/devcenter/devcenterController.php = <i>portalone_intranet_devcenterController</i></li> 
</ul>
</li>
<li>The same thing applies to the objects.
  <ul>
    <li> /portalone/user/user.php = a class named <i>portalone_user</i></li>
    <li> /portalone/intranet/devcenter/devcenter.php = a class named <i>portalone_intranet_deventer</i></li>
	</ul>
</li>
<li>ThinMVC projects have two PHP libraries: the "lib" directory and the main project directory. Anything that will never have a "view" can go in "lib". This includes Pear modules, 3rd party libraries, etc. Items that will have some pages associated with them should be in the main application directory.</li>

</ul>

</body>
</html>
